#include "Vertex.h"

namespace drawing {

	Vertex::Vertex( int posIndex, int texCoordIndex, int normalIndex ) :
		PosIndex( posIndex ),
		TexCoordIndex( texCoordIndex ),
		NormalIndex( normalIndex )
	{}

	Vertex::Vertex( const Vertex& other ) :
		PosIndex( other.PosIndex ),
		TexCoordIndex( other.TexCoordIndex ),
		NormalIndex( other.NormalIndex )
	{}

	Vertex& Vertex::operator=( const Vertex& rhs )
	{
		if( this == &rhs ) return *this; // handle self assignment

		PosIndex = rhs.PosIndex;
		TexCoordIndex = rhs.TexCoordIndex;
		NormalIndex = rhs.NormalIndex;
		return *this;
	}


}
